package com.jiao.springcloud.dao;

import com.jiao.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
//@Repository
public interface PaymentDao {

    //创建订单
    public int create(Payment payment);

    //通过id查订单
    public Payment getPaymentById(@Param("id") Long id);
}
